package cn.sycoder.mapper;

import cn.sycoder.entity.Menu;
import cn.sycoder.vo.MenuNodeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 杨润发
 * @since 2024-10-21
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    // 自定义sql
    @Select("select id, menu_name name from menu where url = 'fail'")
    List<MenuNodeVo> selectNodes();
}
